package com.hrp.hrpdao;

import com.hrp.domain.Jxksgsmb;
import com.hrp.domain.Menus;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * Created by Administrator on 2018/8/13 0013.
 */
@Mapper
public interface JxksgsmbDao {

    @Insert("insert into JX_KSGSMBK(jxksdm,jxksmc,gsmc,gsmcHtml,gsmb,insertdate,updatedate) values(#{jxksdm},#{jxksmc},#{gsmc},#{gsmcHtml},#{gsmb},#{insertdate},#{updatedate})")
    @Options(useGeneratedKeys=true,keyProperty="id")
    int add(Jxksgsmb jxksgsmb);

    @Select("SELECT  [id],[jxksdm],[jxksmc],[gsmc],[gsmcHtml],[gsmb],[insertdate],[updatedate] FROM [JX_KSGSMBK] where jxksdm=#{jxksdm}")
    Jxksgsmb getJxksgsmbByJxksdm(String jxksdm);

    @Update("update [JX_KSGSMBK] set gsmc=#{gsmc},gsmcHtml=#{gsmcHtml},gsmb=#{gsmb},updatedate=#{updatedate} where jxksdm=#{jxksdm}")
    void updateJxksgsmbByJxksdm(Jxksgsmb jxksgsmb);

}
